home *** CD-ROM | disk | FTP | other *** search
- Path: u-strasbg.fr!INDI1!papier
- From: papier@INDI1 (Laurent Papier)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: gcc & regargs
- Date: 1 Feb 1996 15:40:13 GMT
- Organization: CRC - Universite Louis Pasteur - Strasbourg France
- Message-ID: <4eqmst$hcb@apopi.u-strasbg.fr>
- References: <alex.04j6@warp.demon.co.uk>
- NNTP-Posting-Host: indi1.u-strasbg.fr
- X-Newsreader: TIN [version 1.2 PL2]
-
- Alex Tucker (alex@warp.demon.co.uk) wrote:
- : Is there an easy way to get gcc to pass function arguments into a function
- : call as registers instead of on the stack, for use with e.g. hook functions?
-
- : As an example, can gcc do the equivalent of the following in SAS C:
-
- : ULONG __saveds __asm HookFunc(register __a0 struct Hook *hook,
- : register __a2 APTR object,
- : register __a1 APTR message);
- : ???
-
- Yes, look in gcc-faq from gcc-270-readme.lha.
-
- --
- \|/
- @ @
- ------------------oOO-(_)-OOo-----------------------------------------------
- Laurent Papier - LSIIT - Universite Louis Pasteur - Strasbourg - FRANCE
- E-Mail: papier@dpt-info.u-strasbg.fr
- WWW: http://dpt-info.u-strasbg.fr/~papier
- ----------------------------------------------------------------------------
-